package cn.rwklyd.BookKeeping.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryTransactions {
    @Schema(description = "记录ID")
    private Long id;
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "分类ID")
    private Long categoryId;
    
    @Schema(description = "平台ID")
    private Long platformId;
    
    @Schema(description = "交易开始日期(支持格式：yyyy-MM-dd HH:mm:ss 或 时间戳秒)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;
    
    @Schema(description = "交易结束日期(支持格式：yyyy-MM-dd HH:mm:ss 或 时间戳秒)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
    
    @Schema(description = "开始日期时间戳(秒)")
    private Long startTimestamp;
    
    @Schema(description = "结束日期时间戳(秒)")
    private Long endTimestamp;
    
    @Schema(description = "开始日期字符串(格式：yyyy-MM-dd HH:mm:ss)")
    private String startDateStr;
    
    @Schema(description = "结束日期字符串(格式：yyyy-MM-dd HH:mm:ss)")
    private String endDateStr;
    
    @Schema(description = "备注关键词")
    private String remark;
    
    @Schema(description = "页码")
    private Integer page;
    
    @Schema(description = "每页大小")
    private Integer pageSize;
} 